package fu.k4c.vTeam;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class SplashScreenActivity extends Activity {
	/** Called when the activity is first created. */
	static final int SPLASH_TIME = 2000;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.spash);
		new Thread() {
			int wait = 0;

			public void run() {
				while (wait < SPLASH_TIME) {
					try {
						sleep(1000);
						wait += 1000;

					} catch (Exception e) {
						// TODO: handle exception
						e.printStackTrace();
					}
				}
				startActivity(new Intent(SplashScreenActivity.this,
						HomeActivity.class));

				finish();

			}
		}.start();
	}
}